package com.weiyuwqj.server.mapper;

import com.weiyuwqj.api.model.BasCoupon;
import com.weiyuwqj.api.model.BasTicket;
import com.weiyuwqj.api.model.vo.BasTicketVo;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
@Repository
public interface BasTicketMapper extends Mapper<BasTicket> {

    List<BasTicketVo> getList(Map map);

    List<BasTicketVo> getTicketListByUserId(Integer userId);

    BasTicketVo getSingle(Integer id);

    Integer updateTicketStatus(Map map);

    //前台投资根据金额对应能使用的加息券列表
    List<BasTicket> getListByUserId(Map map);

    BasTicket getOneByInvestId(Integer investId);

    int updateTicketTimerStatus(Map map);

    Integer statTicketCount(Map map);

    //根据investId查询加息券信息
    BasTicket getTicketByInvestId(Integer investId);

    List<BasTicketVo> listTicketAndConf(Map map);
}